package com.css.zfzx.data.thirdary.fjgReconciliation.repository.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * @Description: data
 * @Author: lhl
 * @CreateDate: 2021/6/24 10:26
 */
@Entity
@Table(name = "sjtgf_fjghsh_dz_sjdzb", schema = "base", catalog = "")
public class SjtgfFjghshDzSjdzbEntity {
    private long id;
    private String dataid;
    private String bmc;
    private Integer lch;
    private String wjmc;
    private String wjlj;
    private String sjzw;
    private Timestamp createtime;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "dataid")
    public String getDataid() {
        return dataid;
    }

    public void setDataid(String dataid) {
        this.dataid = dataid;
    }

    @Basic
    @Column(name = "bmc")
    public String getBmc() {
        return bmc;
    }

    public void setBmc(String bmc) {
        this.bmc = bmc;
    }

    @Basic
    @Column(name = "lch")
    public Integer getLch() {
        return lch;
    }

    public void setLch(Integer lch) {
        this.lch = lch;
    }

    @Basic
    @Column(name = "wjmc")
    public String getWjmc() {
        return wjmc;
    }

    public void setWjmc(String wjmc) {
        this.wjmc = wjmc;
    }

    @Basic
    @Column(name = "wjlj")
    public String getWjlj() {
        return wjlj;
    }

    public void setWjlj(String wjlj) {
        this.wjlj = wjlj;
    }

    @Basic
    @Column(name = "sjzw")
    public String getSjzw() {
        return sjzw;
    }

    public void setSjzw(String sjzw) {
        this.sjzw = sjzw;
    }

    @Basic
    @Column(name = "createtime")
    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SjtgfFjghshDzSjdzbEntity that = (SjtgfFjghshDzSjdzbEntity) o;
        return id == that.id &&
                Objects.equals(dataid, that.dataid) &&
                Objects.equals(bmc, that.bmc) &&
                Objects.equals(lch, that.lch) &&
                Objects.equals(wjmc, that.wjmc) &&
                Objects.equals(wjlj, that.wjlj) &&
                Objects.equals(sjzw, that.sjzw) &&
                Objects.equals(createtime, that.createtime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, dataid, bmc, lch, wjmc, wjlj, sjzw, createtime);
    }
}
